package org.jeecg.modules.front.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.front.entity.BusUser;
import org.jeecg.modules.front.entity.req.WxUserRegisterReq;
import org.jeecg.modules.front.entity.resp.BusUserResp;

public interface BusUserService extends IService<BusUser> {



    /**
     * 微信登录注册
     * @param req
     * @return
     */
    Result<BusUserResp> wxAppUserLogin(WxUserRegisterReq req);

    /**
     * 查询用户详情
     * @param id
     * @return
     */
    BusUserResp getByUserId(String id);
    /**
     * 根据手机号码获取小程序用户
     * @param phoneNum
     * @return
     */
    BusUserResp getUserByPhone(String phoneNum);
}
